/*
 * @Date: 2023-03-04 16:34:32
 * @LastEditors: Zireael 1193875164@qq.com
 * @LastEditTime: 2023-03-07 19:34:48
 * @FilePath: \A19\backend\src\shared\protocols\SourceManage\PtlUploadFile.ts
 */
/*
 * @Date: 2023-03-04 16:34:32
 * @LastEditors: Zireael 1193875164@qq.com
 * @LastEditTime: 2023-03-05 13:59:38
 * @FilePath: \A19\backend\src\shared\protocols\SourceManage\PtlUploadFile.ts
 */
import { ObjectId } from "mongodb";
import { BaseRequest, BaseResponse, BaseConf } from "../base";
import { file } from "../../types/Folder";

export interface ReqUploadFile extends BaseRequest {
  files: Array<{
    fileName: string;
    fileData: Uint8Array;
    fileType: string;
  }>;
  path:string[];
  course:ObjectId
}

export interface ResUploadFile extends BaseResponse {
  folders:Array<string>
  files:Array<file>
}

export const conf: BaseConf = {
  needLogin: true,
};
